Thread List Adapter
ThreadListAdapter provides a binding from a thread message type data set to views that are displayed within a RecyclerView. since 3.3.0
Constructors
Link copied to clipboard
open fun ThreadListAdapter(@Nullable channel: GroupChannel, @NonNull messageListUIParams: MessageListUIParams)
Content copied to clipboard
Functions
Link copied to clipboard
Return the view type of the MessageViewHolder at
position
for the purposes of view recycling.Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: MessageViewHolder, position: Int)
Content copied to clipboard
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): MessageViewHolder
Content copied to clipboard
Called when RecyclerView needs a new MessageViewHolder of the given type to represent an item.